home *** CD-ROM | disk | FTP | other *** search
- /*
-
- $VER: EASYdms 1.0 (15.07.95) by David De Groot
-
- This script works with dms in your c: dir
-
-
- */
-
-
-
- signal on break_c
- options failat 21
- NL = '0a'x
-
- bool = exists('libs:rexxreqtools.library')
- if BOOL = 0
- then say "You need RexxReqTools.library"
- else call addlib('rexxreqtools.library',0,-30)
-
- dcheck = exists('c:dms')
- if dcheck = 0
- then do
- call rtezrequest("DMS not found in C:...",,
- "Sorry!","ATTENTION!!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
- exit
- end
- else
-
- call rtezrequest("PACK or UNPACK a dmsfile?",,
- "_Pack|_Unpack","Tell me", 'rt_reqpos=reqpos_centerscr')
-
- if rtresult == 1
- then call pack
- else call unpack
-
-
- /**/
- pack:
-
- call rtezrequest("Do you want to add some text" nl,
- "to the DMSfile?",,
- "_Yes|_Not at all","Tell me",,
- 'rtez_defaultresponse = 0 rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- if rtresult == 1
- then call tpack
- else do
-
- name = rtgetstring(,"Enter a name for the DMSfile" nl,
- "and select the diskdrive.",,
- " EASYdms ",,
- "DF_0|DF_1|DF_2|DF_3|_Cancel",,
- 'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- if rtresult == 0 then exit
- if rtresult == 1 then call rcommand(df0)
- if rtresult == 2 then call rcommand(df1)
- if rtresult == 3 then call rcommand(df2)
- if rtresult == 4 then call rcommand(df3)
-
-
- /**/
- unpack:
-
- filename = rtfilerequest('ram:',,"Pick a dmsfile to unpack:", ,,
- 'rt_reqpos=reqpos_centerscr')
-
- if rtresult == 0
- then
-
- call rtezrequest("You picked no dmsfile." nl,
- "That ends this session I'm afraid!",
- ,"Ok!","Heho!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
-
- else
- call rtezrequest("Tell me where to unpack:",,
- "DF_0|DF_1|DF_2|DF_3|_RAD|_Cancel",,
- "Info",'rt_reqpos=reqpos_centerscr')
-
- if rtresult == 0 then exit
- if rtresult == 1 then call wcommand(df0)
- if rtresult == 2 then call wcommand(df1)
- if rtresult == 3 then call wcommand(df2)
- if rtresult == 4 then call wcommand(df3)
- if rtresult == 5 then call wcommand(rad)
-
-
-
- /**/
- tpack:
-
- name = rtgetstring(,"Enter a name for the DMSfile" nl,
- "and select the diskdrive.",,
- "EASYdms",,
- "DF_0|DF_1|DF_2|DF_3|_Cancel",,
- 'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- if rtresult == 0 then exit
- if rtresult == 1 then call tcommand(df0)
- if rtresult == 2 then call tcommand(df1)
- if rtresult == 3 then call tcommand(df2)
- if rtresult == 4 then call tcommand(df3)
-
-
- /**/
- tcommand:
-
- address command
- 'dms read ram:' || name || ' text con:27/240/594/153/Enter¯TEXT:¯¯´Ctrl\´¯to¯END from ' || arg(1) || ':'
- exit
-
-
- /**/
- rcommand:
-
- address command
- 'dms read ram:' || name || ' from ' || arg(1) || ':'
- exit
-
-
-
- /**/
- wcommand:
- address command
- 'dms write ' || filename || ' to ' || arg(1) || ':'
- exit
-
-
- /**/
- break_c:
-
- call rtezrequest("You entered a break." nl,
- "This quits EASYdms...!",,
- "Right!","Heho!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- exit
-
-
- /**********************************************************************
-
- Options for ENCRYPTED dmspacking:
-
- dms read ram: ' || name ||' from df0: encrypt ' || password || '
- and DEcrypt for UNpacking.
-
- ***********************************************************************/
-
-
- /* Futureplans: DISSOLVE ;-) */
-
-
-
-
-